import { Prop, Schema, SchemaFactory } from '@nestjs/mongoose';
import { HydratedDocument } from 'mongoose';

export type RawDataDocument = HydratedDocument<RawData>;

@Schema()
export class RawData {
  @Prop({
    type : 'number'
  })
  messageId: number;

  @Prop({
    type : 'string'
  })
  data: string;

  @Prop({
    type : 'number'
  })
  createTime: number;
}

export const RawDataSchema = SchemaFactory.createForClass(RawData);
